<div id="ranking_detail">

</div>
<div id="ranking_list">
<?php $keyword_ranking_history_obj = new KeywordRankingHistory();
	  $cralwer_obj = new Crawler();
?>
<?php foreach ($this->histories as $history): ?>
	<?php 
		$rankings = $keyword_ranking_history_obj->get_rankings($history->id);
		$crawler = $cralwer_obj->find($history->crawler_id)->current();
	?>
	<a href="<?php echo ROOT_URL."/ranking/load_keyword_ranking?history_id=".$history->id ?>" onclick="load_ranking(<?php echo $history->id ?>)">>> Ranking <?php echo $history->id ?><br/>
	<span>Crawler Time From: <?php echo $crawler->started_at ; ?> To <?php echo $crawler->finished_at; ?></span>
	</a>
	
	<br/>
<?php endforeach; ?>
</div>
<script>
	//$("#ranking_list a:first").click();

</script>
